//
//  SCB_Products_Model.m
//  Time
//
//  Created by dllo on 16/8/1.
//  Copyright © 2016年 司昌宝. All rights reserved.
//

#import "SCB_Products_Model.h"

@implementation SCB_Products_Model

-(void)dealloc {
    [_contentId release];
    [_title release];
    [_coverimg release];
    [_text release];
    [_buyurl release];
    [_isLike release];
    [_comments release];
    [_likes release];
    [_scbShareinfo release];
    [super dealloc];
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    if ([key isEqualToString:@"id"]) {
        self.contentId = value;
    }
    if ([key isEqualToString:@"shareInfo"]) {
        self.scbShareinfo = [[SCBShareinfo alloc] init];
        [self.scbShareinfo setValuesForKeysWithDictionary:value];
        [_scbShareinfo release];
    }
}

@end
